const path = require('path');

function getFilePath(item = '') {
  const rootPath = path.dirname(require.main.filename);
  return path.join(rootPath, item);
}

module.exports = {
  getFilePath,
};
